import {NgModule} from '@angular/core';
import {SettingComponent} from './setting/setting.component';
import {SettingService} from './setting.service';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../../shared/shared.module';
import {AppHomeComponent} from './app-home/app-home.component';

const routes: Routes = [
  {path: '', redirectTo: 'system'},
  {path: 'system', component: SettingComponent},
  {path: 'app-home', component: AppHomeComponent}
];

@NgModule({
  imports: [
    SharedModule.forRoot(),
    RouterModule.forChild(routes)
  ],
  declarations: [SettingComponent, AppHomeComponent],
  providers: [SettingService]
})
export class SettingModule {
}
